package org.gnyxy.utils;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class BigDecimalUtil {

    private static final int DEFAULT_SCALE = 2;

    public static BigDecimal round(BigDecimal value) {
        return value.setScale(DEFAULT_SCALE, RoundingMode.HALF_UP);
    }
}
